package com.opgea.crm.web.security;
/*
public class CrmLogoutSuccessHandler extends SimpleUrlLogoutSuccessHandler {

	@Override
	public void onLogoutSuccess(HttpServletRequest request, HttpServletResponse response, Authentication authentication)
			throws IOException, ServletException {
			
		String contentType = request.getContentType();
		
		if (contentType!=null
				&&(contentType.toLowerCase().contains("json"))){
			HttpServletResponse httpResponse = (HttpServletResponse) response;
		    httpResponse.setHeader("Cache-Control", "private,no-cache,no-store");
	        httpResponse.setHeader("Pragma", "no-cache");
	        httpResponse.setDateHeader("Expires", 0);
	        HttpServletResponseWrapper responseWrapper = new HttpServletResponseWrapper(response);
			Writer out = responseWrapper.getWriter();
			out.write("{ success: true}");
			
		}else{
			super.onLogoutSuccess(request, response, authentication);
			
		}

	}

}
*/